home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
101-125
/
disk_114
/
cdecl
/
makefile.unix
< prev
next >
Wrap
Makefile
|
1992-05-06
|
1KB
|
45 lines
# Makefile for cdecl
DESTDIR=
CFLAGS= -O
LIBS=
MAKE= make
WHERE= /usr/local/bin
all: cdecl
cdecl: cdgram.o cdsupp.o
${CC} ${CFLAGS} -o $@ cdgram.o cdsupp.o
clean:
rm -f core *.o cdecl cdlex.c cdgram.c
install: cdecl
install -s cdecl ${DESTDIR}${WHERE}/cdecl
depend: cdgram.c cdlex.c cdsupp.c
for i in cdgram.c cdlex.c cdsupp.c; do\
cc -M ${INCPATH} $$i | sed -e 's, \./, ,' | \
awk '{ if ($$1 != prev) { if (rec != "") print rec; \
rec = $$0; prev = $$1; } \
else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
else rec = rec " " $$2 } } \
END { print rec }'; done >makedep
echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
echo '$$r makedep' >> eddep
echo 'w' >>eddep
cp Makefile Makefile.bak
ed - Makefile < eddep
rm eddep makedep
echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
echo '# see make depend above' >> Makefile
# DO NOT DELETE THIS LINE -- make depend uses it
cdgram.o: cdgram.c cdlex.c
cdlex.o: cdlex.c
cdsupp.o: cdsupp.c
# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY
# see make depend above